<?php

namespace app\product\validate;
use think\Validate;
class ProductSku extends Validate
{
    protected $rule = [
        'spu'         => 'require',
        'product_id'  => 'require',
        'variant_arr' => 'require',
    ];

    protected $message = [
        'spu.require'         => 'spu必须',
        'product_id.require'  => 'product_id必须',
        'variant_arr.require' => '属性数据必须',
    ];

}